Install additional python libraries in FME
Add FME to the environment variable
- You need to add
FMEto your environment variables - You can do so my adding the
Pathof the FME install to your environment - In my case,
FMEwas installed inC:\Program Files\FME - Once you've added the following path to the environment varible, you can launch a new terminal and type in
fme.exe python -hto see wherepythonis installed. - For me, it was installed in
C:\Program Files\FME\fmepython39
Installing additional packages
⚠️ Since the python packages are going to be installed in
C:\Program Files, you need to launch the command prompt or Terminal with Admin privileges.
- Once the environment variable is configured correctly you can run this command to install any additional package
fme.exe python -m pip install <your-package-name> --target "C:\Program Files\FME\fmepython39"
Some commands for installing frequently used libraries
fme.exe python -m pip install numpy --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install pandas --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install xgbse --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install xgboost --target "C:\Program Files\FME\fmepython39"
fme.exe python -m pip install lightgbm --target "C:\Program Files\FME\fmepython39"